using System.Diagnostics.CodeAnalysis;

namespace NHaml.Rules
{
  [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")]
  public class PlainTextMarkupRule : MarkupRule
  {
    [SuppressMessage("Microsoft.Security", "CA2104")]
    public static readonly PlainTextMarkupRule Instance = new PlainTextMarkupRule();

    private PlainTextMarkupRule()
    {
    }

    public override char Signifier
    {
      get { return new char(); }
    }

    public override BlockClosingAction Render(TemplateParser templateParser)
    {
      templateParser.TemplateClassBuilder.AppendOutputLine(templateParser.CurrentInputLine.Text);

      return null;
    }
  }
}